<?php

namespace App\Providers;

use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider;
use Event;
use SocialiteProviders\Manager\SocialiteWasCalled;

class EventServiceProvider extends ServiceProvider
{

    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        'App\Events\V1\UserLoginEvent' => [
            'App\Listeners\V1\UserLoginListener',
        ],
        'App\Events\V1\UserRegEvent' => [
            'App\Listeners\V1\UserRegCreditListener',
        ],
        'App\Events\V1\UserCountChannelEvent' => [
            'App\Listeners\V1\UserRegCountListener',
        ],
        'App\Events\V1\UserPushEvent' => [
            'App\Listeners\V1\UserPushListener',
        ],
//	    SocialiteWasCalled::class => [
//	    	'ThirdProviders\Weixin\WeixinExtendSocialite@handle',
//	    ],
    ];

    /**
     * Register any other events for your application.
     *
     * @return void
     */
    public function boot()
    {
        parent::boot();

        Event::listen('event.name', function ($key, $value) {
            //
        });
    }

}
